package com.dscs.test.test.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.dscs.test.test.entity.GenTest;
import com.dscs.test.test.mapper.GenTestMapper;
import com.dscs.test.test.service.IGenTestService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.function.Function;

/**
 * <p>
 * 代码生成表 服务实现类
 * </p>
 *
 * @author WJP
 * @since 2024-01-10
 */
@Service
public class GenTestServiceImpl extends ServiceImpl<GenTestMapper, GenTest> implements IGenTestService {
    public static void main(String[] args) {
        GenTest entity = new GenTest();
        LambdaQueryWrapper<GenTest> wp = Wrappers.lambdaQuery(entity);
        wp.eq(GenTest::getId, "1");
        Function<GenTest, ?> function = GenTest::getId;

        new GenTestServiceImpl().baseMapper.selectMaps(wp);
    }
}
